﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.NationalCupHistory" Title="" StylesheetTheme="SkinFile"
    CodeBehind="NationalCupHistory.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, NationalCupHistory_PageNameLabel %>"
        CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
        <asp:FormView ID="TitleFormView" runat="server" DataSourceID="TitleDataSourse" Width="100%">
            <ItemTemplate>
                <div class="red_title_no_padding">
                <div class="grey_title_inside_red floater">
                    <asp:Label ID="TitleLabel" runat="server" Text="<%$ Resources:Resource, NationalCupHistory_TitleLabel %>" CssClass="team_name_white"></asp:Label>
                    <asp:HyperLink ID="CountryLinkButton" runat="server" CssClass="team_name_white"
                    Text='<%# Eval("Name") %>' NavigateUrl='<%# Eval("CountryId", "~/Country.aspx?Id={0}") %>'></asp:HyperLink>
                </div>
                <div class="grey_title_triangle floater"></div>
                
                <asp:Hyperlink ID="CountryHyperlink" runat="server" NavigateUrl='<%# Eval("CountryId", "~/Country.aspx?Id={0}") %>' CssClass="rounded_corners"
                    ImageUrl='<%# Eval("Flag", "~/Images/Flags/{0}") %>' ToolTip='<%# Eval("Name") %>' AlternateText='<%# Eval("Name") %>' ></asp:Hyperlink>
            </ItemTemplate>
        </asp:FormView>
        <asp:SqlDataSource ID="TitleDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetBasicCountryInfo" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>

    <div class="padding5">
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" SkinID="Professional"
            AutoGenerateColumns="False" AllowPaging="True" Font-Size="13px" Width="50%" EnableTheming="True">
            <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
            <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Label ID="SeasonLabel" runat="server" Text="<%$ Resources:Resource, Global_Season %>"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("Season") %>' NavigateUrl='<%# Eval("Season", "NationalCup.aspx?Season={0}") %>'
                            SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Label ID="WinnerNameLabel" runat="server" Text="<%$ Resources:Resource, NationalCupHistory_WinnerNameLabel %>"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink3" runat="server" Text='<%# Eval("WinnerName") %>' NavigateUrl='<%# Eval("WinnerId", "TeamHomePage.aspx?TeamId={0}") %>'
                            SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
        <br />
        <asp:HyperLink ID="NationalCupHyperLink" runat="server" SkinID="GreenTitleHyperLink"
            Text="<%$ Resources:Resource, NationalCupHistory_NationalCupHyperLink %>" NavigateUrl="NationalCup.aspx"></asp:HyperLink>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_ShowNationalCupWinners" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
    </div>
    </div>
</asp:Content>
